package com.example.springbootvuetest.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.time.LocalDateTime;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 *
 * </p>
 *
 * @author shuoye
 * @since 2023-03-14
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("sh_favorite")
public class Favorite implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty("id")
    private Integer id;

    /**
     * 创建时间
     */
    @ApiModelProperty(" 创建时间")
    private LocalDateTime createTime;

    /**
     * 用户id
     */
    @ApiModelProperty("用户id")
    private Integer userId;

    /**
     * 闲置id
     */
    @ApiModelProperty("闲置id")
    private Integer idleId;


    @TableField(exist = false)
    @ApiModelProperty("物品信息")
    private IdleItem idleItem;
}
